//
//  SimpleChart.h
//  SampleHeartRateApp
//
//  Created by Chris Greening on 25/11/2010.
//  Copyright 2010 CMG Research. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SimpleChartDelegate <NSObject>

-(void)detectionFinishNotif;

@end

@interface SimpleChart : UIView {
	NSMutableArray *points;
    NSInteger rateCount;
    IBOutlet UILabel* rateCountLabel;
    NSInteger changeCount;
    NSTimeInterval startDate;
    NSTimeInterval endDate;
    BOOL finishDetection;
    NSInteger meddleCount;
}

@property (nonatomic, assign) id<SimpleChartDelegate> delegate;
@property (nonatomic, retain) NSMutableArray *points;

-(void) addPoint:(NSArray *) array;
-(void) clearDetectionData;

@end
